from otree.api import (
    models,
    widgets,
    BaseConstants,
    BaseSubsession,
    BaseGroup,
    BasePlayer,
    Currency as c,
    currency_range,
)


author = 'Your name here'

doc = """
Your app description
"""


class Constants(BaseConstants):
    name_in_url = 'S_instruction_bargaining2_second'
    players_per_group =3
    num_rounds = 1


class Subsession(BaseSubsession):
    def creating_session(self):  # 分组 使用一开始建立的分组
        matrix = self.session.vars['second_contest']
        self.set_group_matrix(matrix)


class Group(BaseGroup):
    pass


class Player(BasePlayer):
    pass
